package com.jmy.service.impl;

import com.jmy.mapper.MenuMapper;
import com.jmy.pojo.Menu;
import com.jmy.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author: VE
 * @DATE: 2022/9/27 14:12
 * 描述:
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;
    @Transactional(propagation = Propagation.REQUIRED)
    @Override
    public Object insert(Menu menu) {
        return null;
    }
    @Transactional(propagation = Propagation.REQUIRED)
    @Override
    public Object delete(int id) {
        return null;
    }
    @Transactional(propagation = Propagation.REQUIRED)
    @Override
    public Object update(Menu menu) {
        return null;
    }
    @Transactional(readOnly = true)
    @Override
    public Menu load(int id) {
        return null;
    }
    @Transactional(readOnly = true)
    @Override
    public List<Menu> getMenuListByRid(Map<String, Object> map) {
        return menuMapper.getMenuListByRid(map);
    }
}
